package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.weijian.dal.BaseDO;
import com.weijian.dal.enums.City;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 货物明细实体类
 * 对应数据库表: shipment
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("shipment")
public class Shipment extends BaseDO {

    /**
     * 货物ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 货物原始索引
     */
    private Integer shipmentId;

    /**
     * 起始节点
     */
    private City originNode;

    /**
     * 目标节点
     */
    private City destinationNode;

    /**
     * 需求量
     */
    private Integer demand;

    /**
     * 时间价值
     */
    private Integer timeValue;

    /**
     * 数据ID
     */
    private Integer dataId;

}